cdef extern from "Python.h":
    int PyString_AsStringAndSize(object obj, char **s, Py_ssize_t *len) except -1
    char *PyString_AsString(object obj)
    object PyString_FromStringAndSize(char *v, Py_ssize_t len)
    object PyString_FromString(char *v)

